From 54fd3498132086b317ac22a3cd3011b845741648 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Wed, 4 Sep 2002 08:15:40 +0000 Subject: [PATCH] (decode-char): Translate a character by utf-8-translation-table-for-decode only when utf-8-fragment-on-decoding is non-nil. --- lisp/international/mule.el | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/lisp/international/mule.el b/lisp/international/mule.el index e937d11030e..8b1dbf89762 100644 --- a/lisp/international/mule.el +++ b/lisp/international/mule.el @@ -308,7 +308,8 @@ See also the documentation of `make-char'." Return nil if such a character is not supported. Currently the only supported coded character set is `ucs' (ISO/IEC 10646: Universal Multi-Octet Coded Character Set), and the result is -translated through the char table `utf-8-translation-table-for-decode'. +translated through the char table `utf-8-translation-table-for-decode' +if the variable `utf-8-fragment-on-decoding' is non-nil. Optional argument RESTRICTION specifies a way to map the pair of CCS and CODE-POINT to a character. Currently not supported and just ignored." @@ -331,7 +332,9 @@ and CODE-POINT to a character. Currently not supported and just ignored." (setq code-point (- code-point #xe000)) (make-char 'mule-unicode-e000-ffff (+ (/ code-point 96) 32) (+ (% code-point 96) 32)))))) - (if (and c (aref utf-8-translation-table-for-decode c)) + (if (and c + utf-8-fragment-on-decoding + (aref utf-8-translation-table-for-decode c)) (aref utf-8-translation-table-for-decode c) c))))) @@ -843,6 +846,11 @@ following properties are recognized: In the former case, the integer value is a valid byte code. In the latter case, the integers specify the range of valid byte codes. + o composition (meaningful only when TYPE is 0 or 2) + + If the value is non-nil, the coding system preserves information of + composition. + These properties are set in PLIST, a property list. This function also sets properties `coding-category' and `alias-coding-systems' automatically. -- 2.30.2